module expd.stack;
import expd.istack;
version(phobos2)
{
    import std.container;
    class Stack(T) : IStack!(T)
    {
        SList!T impl;
        this()
        {
            impl = SList!(T)();
        }
        void push(T x)
        {
            impl.insertFront(x);
        }
        T pop()
        {
            return impl.removeAny();
        }
        T peek()
        {
            return impl.front();
        }
    }
}

